import request from '@/utils/request'

// 查询供应商年度统计信息列表
export function listScmStatsSupplierYearly(query) {
  return request({
    url: '/scm/scmStatsSupplierYearly/list',
    method: 'get',
    params: query
  })
}

// 查询供应商年度统计信息详细
export function getScmStatsSupplierYearly(id) {
  return request({
    url: '/scm/scmStatsSupplierYearly/' + id,
    method: 'get'
  })
}

// 新增供应商年度统计信息
export function addScmStatsSupplierYearly(data) {
  return request({
    url: '/scm/scmStatsSupplierYearly',
    method: 'post',
    data: data
  })
}

// 修改供应商年度统计信息
export function updateScmStatsSupplierYearly(data) {
  return request({
    url: '/scm/scmStatsSupplierYearly',
    method: 'put',
    data: data
  })
}

// 删除供应商年度统计信息
export function delScmStatsSupplierYearly(id) {
  return request({
    url: '/scm/scmStatsSupplierYearly/' + id,
    method: 'delete'
  })
}
